<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
		function outer(){
			var x=10;
			console.log(1,x);
			function inner(){
				 var y=3;
				 alert(y+x);
			}
			x+=10;
			console.log(2,x);
			return inner;
		}
		var li=outer();
		li();
		</script>
	</body>
</html>
